package com.javabasic.oop;

public class Unit23InnerClass {
	public static void main(String [] args) {
		Outer outer = new Outer();
		outer.show();
		
		C c1 = new C();
		c1.show();
	}
}

class Outer {
	public void show() {
		Inner inner = new Inner();
		inner.display();
	}
	
	class Inner {
		public void display() {
			System.out.println("I am an inner class");
		}
	}
}

class C {
	public void show() {
		Outer.Inner inner = new Outer().new Inner();
		inner.display();
	}
}
